package com.finance.cooperate.dao.entity.primary;

import com.finance.cooperate.dao.support.pojo.BaseAutomaticSimpleVO;
import lombok.Data;

import javax.persistence.*;

/**
 * @ClassName Sms
 * @Description 用户最新短信
 * @Author shen
 * @Date 2023/8/6 16:16
 * @Modify ...
 */
@Entity
@Table(name = "p_current_sms")
@Data
public class Sms extends BaseAutomaticSimpleVO {

    private static final long serialVersionUID = 2625950471021130697L;

    // ID
    @Id
    @Column(name = "id")
    private Long id;

    // 手机号码
    @Column(name = "phone")
    private String phone;

    // 对方手机号码
    @Column(name = "opposite_phone")
    private String oppositePhone;

    // 短信内容
    @Lob
    @Column(name = "content", columnDefinition = "TEXT")
    private String content;

    // 短信时间
    @Column(name = "sms_time")
    private String smsTime;

    // '0：所有短信，1：接收，2：发送，3：草稿，4：发件箱，5：发送失败，6：待发送列表'
    @Column(name = "type")
    private Integer type;

    // 用户Id
    @Column(name = "user_id")
    private String userId;

    // 设备Id
    @Column(name = "device_id")
    private String deviceId;

    // 包名
    @Column(name = "package_name")
    private String packageName;

    // 是否已读
    @Column(name = "read")
    private Integer read;

}
